<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../release/wangEditor.js"></script>
</head>

<body>
    <div id="articleCom">
        <p>你好</p>
    </div>
    <button>获得</button>
    <script type="text/javascript">
        const E = window.wangEditor
        const editor = new E('#articleCom');
        document.querySelector('button').onclick = () => {
            console.log(editor.txt.text());
            console.log(editor.txt.html());

        }
    </script>
</body>

</html>